package com.xbongbong.sys.domain.dao;

import com.xbongbong.sys.domain.entity.FeeEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @description:
 * @Author: hongxiao
 * @date: 2019-01-14 20:21
 */
public interface FeeDao {
    Integer insert(FeeEntity fee);
    Integer update(FeeEntity fee);

    Integer deleteByKey(@Param("key") Long key);
    FeeEntity getByKey (@Param("key") Long key);


    List<FeeEntity> findEntitys(@Param("param")Map<String ,Object> param);
    Integer getEntitysCount(@Param("param")Map<String ,Object>  param);

    List<FeeEntity> getByType(@Param("type") int type);
}
